<#include "/macro.include"/>
<#include "/custom.include"/>  
<#assign className = table.className>   
<#assign classNameLower = className?uncap_first> 
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<title><fmt:message key="navigation.title.edit"/> <fmt:message key="${className}.title"/></title>
<script type="text/javascript" >
$(".${classNameLower}").addClass("active").closest("ul").show().siblings("a").addClass("active");
	$(document).ready(function() {
		$("#${classNameLower}").validate();
		addDateTimePicker('.form_datetime');
		addDatePicker('.form_date'); 

	});
</script>

	<form:form action="<@jspEl 'ctx'/>/${classNameLower}/update" method="post" modelAttribute="${classNameLower}">
		<fieldset>
		<legend><fmt:message key="navigation.title.edit"/></legend>
		<%@ include file="form_include.jsp" %>
		</fieldset>
		<input id="submitButton" name="submitButton" type="submit" value="<fmt:message key="navigation.button.submit"/>" class="btn btn-success" />
		<input type="button" value="<fmt:message key="navigation.button.backtolist"/>" class="btn btn-default" onclick="window.location='<@jspEl 'ctx'/>/${classNameLower}/list'"/>
		<input type="button" value="<fmt:message key="navigation.button.back"/>" class="btn btn-info" onclick="history.back();"/>
		
	</form:form>
